import org.junit.Test;
import static org.junit.Assert.assertEquals;

public class EarthSpaceTest1 {

    @Test
    public void testConversion() throws  Exception
    {
        SpaceToEarthConverter e=new SpaceToEarthConverter();
        int result1=e.convert("XXX");
        int expected=30;
        assertEquals(expected,result1);

        result1=e.convert("XXI");
        expected=21;
        assertEquals(expected,result1);

        result1=e.convert("MMXIX");
        expected=2019;
        assertEquals(expected,result1);

        result1=e.convert("CM");
        expected=900;
        assertEquals(expected,result1);

        result1=e.convert("MMCMXCIV");
        expected=2994;
        assertEquals(expected,result1);

        result1=e.convert("MCMMI");
        expected=2901;
        assertEquals(expected,result1);

        result1=e.convert("MMCMXCIX");
        expected=2999;
        assertEquals(expected,result1);
    }

}